package com.kevin.i18n.dynamic.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("sys_language")
@Schema(description = "文章")
public class Language implements Serializable {

    @Serial
    private static final long serialVersionUID = 4217020243801142967L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @TableField("locale")
    @Schema(description = "语言名称")
    private String locale;

    @TableField("code")
    @Schema(description = "标记")
    private String code;

    @TableField("content")
    @Schema(description = "内容")
    private String content;

}
